const int Value_HpEssenz = 35;
const int HP_Essenz = 50;
const int Value_HpExtrakt = 50;
const int HP_Extrakt = 70;
const int Value_HpElixier = 75;
const int HP_Elixier = 100;
const int Value_ManaEssenz = 40;
const int Mana_Essenz = 50;
const int Value_ManaExtrakt = 60;
const int Mana_Extrakt = 75;
const int Value_ManaElixier = 80;
const int Mana_Elixier = 100;
const int Value_StrElixier = 1500;
const int STR_Elixier = 3;
const int Value_DexElixier = 1500;
const int DEX_Elixier = 3;
const int Value_HpMaxElixier = 2000;
const int HPMax_Elixier = 20;
const int Value_ManaMaxElixier = 2000;
const int ManaMax_Elixier = 5;
const int VALUE_MANAMAXELIXIER_HI = 4000;
const int MANAMAX_ELIXIER_HI = 10;
const int VALUE_TYONPOTION = 10000;
const int MANAMAX_TYONPOTION = 20;
const int Value_MegaDrink = 2500;
const int STRorDEX_MegaDrink = 15;
const int Value_Speed = 250;
const int VALUE_SPEED_02 = 450;
const int VALUE_POACROBAT = 3000;
const int Time_Speed = 240000;
const int TIME_SPEED_02 = 420000;
const int Value_ManaTrunk = 250;
const int Value_HpTrunk = 200;
const int STAMINAMAX_ELIXIER = 5;
 
instance ItPo_Mana_01(C_Item)
{
	name = NAME_Trank;
	mainflag = ITEM_KAT_POTIONS;
	flags = ITEM_MULTI;
	value = Value_ManaEssenz;
	visual = "ItPo_Mana_01.3ds";
	material = MAT_GLAS;
	on_state[0] = UseItPo_Mana_01;
	scemeName = "POTIONFAST";
	wear = WEAR_EFFECT;
	effect = "SPELLFX_MANAPOTION";
	description = "Mana-Essenz";
	text[1] = NAME_Bonus_Mana;
	count[1] = Mana_Essenz;
	text[5] = NAME_Value;
	count[5] = Value_ManaEssenz;
};
 
 
func void UseItPo_Mana_01()
{
	Npc_ChangeAttribute(self,ATR_MANA,Mana_Essenz);
};
 
 
instance ItPo_Mana_02(C_Item)
{
	name = NAME_Trank;
	mainflag = ITEM_KAT_POTIONS;
	flags = ITEM_MULTI;
	value = Value_ManaExtrakt;
	visual = "ItPo_Mana_02.3ds";
	material = MAT_GLAS;
	on_state[0] = UseItPo_Mana_02;
	scemeName = "POTIONFAST";
	wear = WEAR_EFFECT;
	effect = "SPELLFX_MANAPOTION";
	description = "Mana-Extrakt";
	text[1] = NAME_Bonus_Mana;
	count[1] = Mana_Extrakt;
	text[5] = NAME_Value;
	count[5] = Value_ManaExtrakt;
};
 
 
func void UseItPo_Mana_02()
{
	Npc_ChangeAttribute(self,ATR_MANA,Mana_Extrakt);
};
 
 
instance ItPo_Mana_03(C_Item)
{
	name = NAME_Trank;
	mainflag = ITEM_KAT_POTIONS;
	flags = ITEM_MULTI;
	value = Value_ManaElixier;
	visual = "ItPo_Mana_03.3ds";
	material = MAT_GLAS;
	on_state[0] = UseItPo_Mana_03;
	scemeName = "POTIONFAST";
	wear = WEAR_EFFECT;
	effect = "SPELLFX_MANAPOTION";
	description = "Mana-Elixier";
	text[1] = NAME_Bonus_Mana;
	count[1] = Mana_Elixier;
	text[5] = NAME_Value;
	count[5] = Value_ManaElixier;
};
 
 
func void UseItPo_Mana_03()
{
	Npc_ChangeAttribute(self,ATR_MANA,Mana_Elixier);
};
 
 
instance ItPo_Health_01(C_Item)
{
	name = NAME_Trank;
	mainflag = ITEM_KAT_POTIONS;
	flags = ITEM_MULTI;
	value = Value_HpEssenz;
	visual = "ItPo_Health_01.3ds";
	material = MAT_GLAS;
	on_state[0] = UseItPo_Health_01;
	scemeName = "POTIONFAST";
	wear = WEAR_EFFECT;
	effect = "SPELLFX_HEALTHPOTION";
	description = "Essenz der Heilung";
	text[1] = NAME_Bonus_HP;
	count[1] = HP_Essenz;
	text[5] = NAME_Value;
	count[5] = Value_HpEssenz;
};
 
 
func void UseItPo_Health_01()
{
	Npc_ChangeAttribute(self,ATR_HITPOINTS,HP_Essenz);
};
 
 
instance ItPo_Health_02(C_Item)
{
	name = NAME_Trank;
	mainflag = ITEM_KAT_POTIONS;
	flags = ITEM_MULTI;
	value = Value_HpExtrakt;
	visual = "ItPo_Health_02.3ds";
	material = MAT_GLAS;
	on_state[0] = UseItPo_Health_02;
	scemeName = "POTIONFAST";
	wear = WEAR_EFFECT;
	effect = "SPELLFX_HEALTHPOTION";
	description = "Extrakt der Heilung";
	text[1] = NAME_Bonus_HP;
	count[1] = HP_Extrakt;
	text[5] = NAME_Value;
	count[5] = Value_HpExtrakt;
};
 
 
func void UseItPo_Health_02()
{
	Npc_ChangeAttribute(self,ATR_HITPOINTS,HP_Extrakt);
};
 
 
instance ItPo_Health_03(C_Item)
{
	name = NAME_Trank;
	mainflag = ITEM_KAT_POTIONS;
	flags = ITEM_MULTI;
	value = Value_HpElixier;
	visual = "ItPo_Health_03.3ds";
	material = MAT_GLAS;
	on_state[0] = UseItPo_Health_03;
	scemeName = "POTIONFAST";
	wear = WEAR_EFFECT;
	effect = "SPELLFX_HEALTHPOTION";
	description = "Elixier der Heilung";
	text[1] = NAME_Bonus_HP;
	count[1] = HP_Elixier;
	text[5] = NAME_Value;
	count[5] = Value_HpElixier;
};
 
 
func void UseItPo_Health_03()
{
	Npc_ChangeAttribute(self,ATR_HITPOINTS,HP_Elixier);
};
 
 
instance ItPo_Perm_STR(C_Item)
{
	name = NAME_Trank;
	mainflag = ITEM_KAT_POTIONS;
	flags = ITEM_MULTI;
	value = Value_StrElixier;
	visual = "ItPo_Perm_STR.3ds";
	material = MAT_GLAS;
	on_state[0] = UseItPo_Perm_STR;
	scemeName = "POTIONFAST";
	wear = WEAR_EFFECT;
	effect = "SPELLFX_ITEMGLIMMER";
	description = "Elixier der Starke";
	text[1] = NAME_Bonus_Str;
	count[1] = STR_Elixier;
	text[5] = NAME_Value;
	count[5] = Value_StrElixier;
};
 
 
func void UseItPo_Perm_STR()
{
	B_RaiseAttribute(self,ATR_STRENGTH,STR_Elixier);
};
 
 
instance ItPo_Perm_DEX(C_Item)
{
	name = NAME_Trank;
	mainflag = ITEM_KAT_POTIONS;
	flags = ITEM_MULTI;
	value = Value_DexElixier;
	visual = "ItPo_Perm_DEX.3ds";
	material = MAT_GLAS;
	on_state[0] = UseItPo_Perm_DEX;
	scemeName = "POTIONFAST";
	wear = WEAR_EFFECT;
	effect = "SPELLFX_ITEMGLIMMER";
	description = "Elixier der Geschicklichkeit";
	text[1] = NAME_Bonus_Dex;
	count[1] = DEX_Elixier;
	text[5] = NAME_Value;
	count[5] = Value_DexElixier;
};
 
 
func void UseItPo_Perm_DEX()
{
	B_RaiseAttribute(self,ATR_DEXTERITY,DEX_Elixier);
};
 
 
instance ItPo_Perm_Health(C_Item)
{
	name = NAME_Trank;
	mainflag = ITEM_KAT_POTIONS;
	flags = ITEM_MULTI;
	value = Value_HpMaxElixier;
	visual = "ItPo_Perm_Health.3ds";
	material = MAT_GLAS;
	on_state[0] = UseItPo_Perm_Health;
	scemeName = "POTIONFAST";
	wear = WEAR_EFFECT;
	effect = "SPELLFX_HEALTHPOTION";
	description = "Elixier des Lebens";
	text[1] = NAME_Bonus_HpMax;
	count[1] = HPMax_Elixier;
	text[5] = NAME_Value;
	count[5] = Value_HpMaxElixier;
};
 
 
func void UseItPo_Perm_Health()
{
	B_RaiseAttribute(self,ATR_HITPOINTS_MAX,HPMax_Elixier);
	Npc_ChangeAttribute(self,ATR_HITPOINTS,HPMax_Elixier);
};
 
 
instance ItPo_Perm_Mana(C_Item)
{
	name = NAME_Trank;
	mainflag = ITEM_KAT_POTIONS;
	flags = ITEM_MULTI;
	value = Value_ManaMaxElixier;
	visual = "ItPo_Perm_Mana.3ds";
	material = MAT_GLAS;
	on_state[0] = UseItPo_Perm_Mana;
	scemeName = "POTIONFAST";
	wear = WEAR_EFFECT;
	effect = "SPELLFX_MANAPOTION";
	description = "Elixier des Geistes";
	text[1] = NAME_Bonus_ManaMax;
	count[1] = ManaMax_Elixier;
	text[5] = NAME_Value;
	count[5] = Value_ManaMaxElixier;
};
 
 
func void UseItPo_Perm_Mana()
{
	B_RaiseAttribute(self,ATR_MANA_MAX,ManaMax_Elixier);
	Npc_ChangeAttribute(self,ATR_MANA,ManaMax_Elixier);
};
 
 
instance ITPO_PERM_MANA_HI(C_Item)
{
	name = NAME_Trank;
	mainflag = ITEM_KAT_POTIONS;
	flags = ITEM_MULTI;
	value = VALUE_MANAMAXELIXIER_HI;
	visual = "ItPo_Perm_Mana.3ds";
	material = MAT_GLAS;
	on_state[0] = useitpo_perm_mana_hi;
	scemeName = "POTIONFAST";
	wear = WEAR_EFFECT;
	effect = "SPELLFX_MANAPOTION";
	description = "Balsam des Geistes";
	text[1] = NAME_Bonus_ManaMax;
	count[1] = MANAMAX_ELIXIER_HI;
	text[5] = NAME_Value;
	count[5] = VALUE_MANAMAXELIXIER_HI;
};
 
 
func void useitpo_perm_mana_hi()
{
	B_RaiseAttribute(self,ATR_MANA_MAX,MANAMAX_ELIXIER_HI);
	Npc_ChangeAttribute(self,ATR_MANA,MANAMAX_ELIXIER_HI);
};
 
 
instance ITPO_TYONPOTION(C_Item)
{
	name = NAME_Trank;
	mainflag = ITEM_KAT_POTIONS;
	flags = ITEM_MULTI;
	value = VALUE_MANAMAXELIXIER_HI;
	visual = "ItPo_Perm_Mana.3ds";
	material = MAT_GLAS;
	on_state[0] = useitpo_tyonpotion;
	scemeName = "POTIONFAST";
	wear = WEAR_EFFECT;
	effect = "SPELLFX_MANAPOTION";
	description = "Trank des Amun-Su";
	text[1] = NAME_Bonus_ManaMax;
	count[1] = MANAMAX_TYONPOTION;
	text[5] = NAME_Value;
	count[5] = VALUE_TYONPOTION;
};
 
 
func void useitpo_tyonpotion()
{
	if(Npc_IsPlayer(self))
	{
		if(TYONPOTIONTEST == FALSE)
		{
			Wld_PlayEffect("spellFX_LIGHTSTAR_BLUE",hero,hero,0,0,0,FALSE);
			Wld_PlayEffect("spellFX_Teleport_RING",hero,hero,0,0,0,FALSE);
			B_RaiseAttribute(self,ATR_MANA_MAX,MANAMAX_TYONPOTION);
			Npc_ChangeAttribute(self,ATR_MANA,MANAMAX_TYONPOTION);
			TYONPOTIONTEST = TRUE;
			TYONPOTIONTESTCOUNT = 0;
		}
		else
		{
			if(TYONPOTIONTESTCOUNT == 0)
			{
				Wld_PlayEffect("spellFX_LIGHTSTAR_BLUE",hero,hero,0,0,0,FALSE);
				Wld_PlayEffect("spellFX_Teleport_RING",hero,hero,0,0,0,FALSE);
				B_RaiseAttribute(self,ATR_MANA_MAX,10);
				Npc_ChangeAttribute(self,ATR_MANA,10);
			}
			else if(TYONPOTIONTESTCOUNT == 1)
			{
				Wld_PlayEffect("spellFX_LIGHTSTAR_BLUE",hero,hero,0,0,0,FALSE);
				Wld_PlayEffect("spellFX_Teleport_RING",hero,hero,0,0,0,FALSE);
				B_RaiseAttribute(self,ATR_MANA_MAX,5);
				Npc_ChangeAttribute(self,ATR_MANA,5);
			}
			else if(TYONPOTIONTESTCOUNT == 2)
			{
				Wld_PlayEffect("spellFX_LIGHTSTAR_BLUE",hero,hero,0,0,0,FALSE);
				Wld_PlayEffect("spellFX_Teleport_RING",hero,hero,0,0,0,FALSE);
				B_RaiseAttribute(self,ATR_MANA_MAX,1);
				Npc_ChangeAttribute(self,ATR_MANA,1);
			}
			else if(TYONPOTIONTESTCOUNT >= 3)
			{
				B_GivePlayerXP(1000);
			};
			TYONPOTIONTESTCOUNT = TYONPOTIONTESTCOUNT + 1;
		};
	};
};
 
 
instance ItPo_Speed(C_Item)
{
	name = NAME_Trank;
	mainflag = ITEM_KAT_POTIONS;
	flags = ITEM_MULTI;
	value = Value_Speed;
	visual = "ItPo_Speed.3ds";
	material = MAT_GLAS;
	on_state[0] = UseItPo_Speed;
	scemeName = "POTIONFAST";
	wear = WEAR_EFFECT;
	effect = "SPELLFX_ITEMGLIMMER";
	description = "Trank der Geschwindigkeit";
	text[1] = "Ermoglicht kurzzeitiges Sprinten";
	text[3] = NAME_Duration;
	count[3] = Time_Speed / 60000;
	text[5] = NAME_Value;
	count[5] = value;
};
 
 
func void UseItPo_Speed()
{
	Mdl_ApplyOverlayMdsTimed(self,"HUMANS_SPRINT.MDS",Time_Speed);
};
 
 
instance ITPO_SPEED_02(C_Item)
{
	name = NAME_Trank;
	mainflag = ITEM_KAT_POTIONS;
	flags = ITEM_MULTI;
	value = VALUE_SPEED_02;
	visual = "ItPo_Speed_02.3ds";
	material = MAT_GLAS;
	on_state[0] = useitpo_speed_02;
	scemeName = "POTIONFAST";
	wear = WEAR_EFFECT;
	effect = "SPELLFX_ITEMGLIMMER";
	description = "Gro?er Trank der Geschwindigkeit";
	text[1] = "Ermoglicht kurzzeitiges Sprinten";
	text[3] = NAME_Duration;
	count[3] = TIME_SPEED_02 / 60000;
	text[5] = NAME_Value;
	count[5] = value;
};
 
 
func void useitpo_speed_02()
{
	Mdl_ApplyOverlayMdsTimed(self,"HUMANS_SPRINT.MDS",TIME_SPEED_02);
};
 
 
instance ITPO_STAMINA(C_Item)
{
	name = NAME_Trank;
	mainflag = ITEM_KAT_POTIONS;
	flags = ITEM_MULTI;
	value = 100;
	visual = "ItPo_Stamina.3ds";
	material = MAT_GLAS;
	on_state[0] = use_itpo_stamina;
	scemeName = "POTIONFAST";
	wear = WEAR_EFFECT;
	effect = "SPELLFX_ITEMGLIMMER";
	description = "Trank der Ausdauer";
	text[1] = "Stellt die Ausdauer vollstandig wieder her.";
	text[5] = NAME_Value;
	count[5] = value;
};
 
 
func void use_itpo_stamina()
{
	if(Npc_IsPlayer(self))
	{
		ATR_STAMINA = ATR_STAMINA_MAX * 10;
		Print(PRINT_HIGHSTAMINA);
	};
};
 
 
instance ITPO_PERM_STAMINA(C_Item)
{
	name = NAME_Trank;
	mainflag = ITEM_KAT_POTIONS;
	flags = ITEM_MULTI;
	value = 100;
	visual = "ItPo_Perm_Stamina.3ds";
	material = MAT_GLAS;
	on_state[0] = use_itpo_perm_stamina;
	scemeName = "POTIONFAST";
	wear = WEAR_EFFECT;
	effect = "SPELLFX_ITEMGLIMMER";
	description = "Elixier der Ausdauer";
	text[1] = NAME_BONUS_STAMINAMAX;
	count[1] = STAMINAMAX_ELIXIER;
	text[5] = NAME_Value;
	count[5] = value;
};
 
 
func void use_itpo_perm_stamina()
{
	var string concatText;
	var int staminabonus;
	if(Npc_IsPlayer(self))
	{
		staminabonus = 5;
		ATR_STAMINA_MAX = ATR_STAMINA_MAX + staminabonus;
		ATR_STAMINA = ATR_STAMINA + 50;
		Npc_SetTalentSkill(hero,NPC_TALENT_STAMINA,ATR_STAMINA_MAX);
		concatText = ConcatStrings(PRINT_LEARNSTAMINA_MAX,IntToString(staminabonus));
		PrintScreen(concatText,-1,-1,FONT_Screen,2);
		Snd_Play("LevelUP");
	};
};
 
 
instance ITPO_XMAGICDEF(C_Item)
{
	name = NAME_Trank;
	mainflag = ITEM_KAT_POTIONS;
	flags = ITEM_MULTI;
	value = 5000;
	visual = "ItPo_MagicDef.3ds";
	material = MAT_GLAS;
	on_state[0] = use_itpo_xmagicdef;
	scemeName = "POTIONFAST";
	wear = WEAR_EFFECT;
	effect = "SPELLFX_ITEMGLIMMER";
	description = "Elixier der Unsterblichkeit";
	text[2] = "Dieser Trank verleiht Unsterblichkeit...";
	text[3] = "Leider nur fur einen kurzen Zeitraum und nur ein einziges Mal.";
	text[5] = NAME_Value;
	count[5] = value;
};
 
 
func void use_itpo_xmagicdef()
{
	if(Npc_IsPlayer(self) && (NETBEKPOTIONUSED == FALSE))
	{
		Wld_PlayEffect("spellFX_LIGHTSTAR_VIOLET",hero,hero,0,0,0,FALSE);
		Snd_Play("SFX_HealObsession");
		self.flags = NPC_FLAG_IMMORTAL;
		NETBEKPOTIONUSED = TRUE;
	};
};
 
 
const int ITPO_TROLLDEFSTR = 5;
const int ITPO_TROLLPOINTDEFSTR = 5;
 
instance ITPO_PERM_DEF(C_Item)
{
	name = NAME_Trank;
	mainflag = ITEM_KAT_POTIONS;
	flags = ITEM_MULTI;
	value = VALUE_POACROBAT;
	visual = "ItPo_Perm_Def.3ds";
	material = MAT_GLAS;
	on_state[0] = use_itpo_perm_def;
	scemeName = "POTIONFAST";
	wear = WEAR_EFFECT;
	effect = "SPELLFX_ITEMGLIMMER";
	description = "Trank des Trolls";
	text[2] = NAME_BONUS_DEFMAX;
	count[2] = ITPO_TROLLDEFSTR;
	text[3] = NAME_BONUS_DEFPOINTMAX;
	count[3] = ITPO_TROLLPOINTDEFSTR;
	text[4] = "Macht die Haut so eichenhart wie bei einem Troll...";
	text[5] = NAME_Value;
	count[5] = value;
};
 
 
func void use_itpo_perm_def()
{
	Wld_PlayEffect("spellFX_LIGHTSTAR_ORANGE",self,self,0,0,0,FALSE);
	Snd_Play("TRO_Warn");
	self.protection[PROT_EDGE] += ITPO_TROLLDEFSTR;
	self.protection[PROT_BLUNT] += ITPO_TROLLDEFSTR;
	self.protection[PROT_POINT] += ITPO_TROLLPOINTDEFSTR;
	PrintScreen(PRINT_LEARNPROTWEAPONS,-1,-1,FONT_Screen,2);
};
 
 
instance ITPO_XORCPOTION(C_Item)
{
	name = "Orkischer Trank";
	mainflag = ITEM_KAT_POTIONS;
	flags = ITEM_MULTI;
	value = 100;
	visual = "ItPo_OrcPotion.3ds";
	material = MAT_GLAS;
	on_state[0] = useitpo_orcpotion;
	scemeName = "POTIONFAST";
	wear = WEAR_EFFECT;
	effect = "SPELLFX_ITEMGLIMMER";
	description = name;
	text[3] = "Wirkung unbekannt...";
	text[5] = NAME_Value;
	count[5] = value;
};
 
 
func void useitpo_orcpotion()
{
	self.attribute[ATR_HITPOINTS] = self.attribute[ATR_HITPOINTS] - 1000;
};
 
 
instance ITPO_XORCPOTION02(C_Item)
{
	name = "Ungefahrlicher orkischer Trank";
	mainflag = ITEM_KAT_POTIONS;
	flags = ITEM_MULTI;
	value = 1000;
	visual = "ItPo_OrcPotion.3ds";
	material = MAT_GLAS;
	on_state[0] = useitpo_orcpotion02;
	scemeName = "POTIONFAST";
	wear = WEAR_EFFECT;
	effect = "SPELLFX_ITEMGLIMMER";
	description = name;
	text[1] = NAME_Bonus_Str;
	count[1] = 3;
	text[2] = NAME_Bonus_Dex;
	count[2] = 3;
	text[3] = "permanenter Manaverlust:";
	count[3] = -10;
	text[5] = NAME_Value;
	count[5] = value;
};
 
 
func void useitpo_orcpotion02()
{
	var string concatText;
	b_raiseattributemany(self,ATR_STRENGTH,3);
	b_raiseattributemany(self,ATR_DEXTERITY,3);
	b_raiseattributemany(self,ATR_MANA_MAX,-10);
	if(self.attribute[ATR_MANA_MAX] < 0) {self.attribute[ATR_MANA_MAX] = 0;};
	if(self.attribute[ATR_MANA] > self.attribute[ATR_MANA_MAX])
	{
		self.attribute[ATR_MANA] = self.attribute[ATR_MANA_MAX];
	};
	concatText = "Starke + 3, Geschicklichkeit + 3, Mana - 10";
	PrintScreen(concatText,-1,-1,FONT_Screen,2);
};
 
 
instance ItPo_MegaDrink(C_Item)
{
	name = "Embarla Firgasto";
	mainflag = ITEM_KAT_POTIONS;
	flags = ITEM_MULTI;
	value = Value_MegaDrink;
	visual = "ItPo_MegaDrink.3ds";
	material = MAT_GLAS;
	on_state[0] = UseItPo_MegaDrink;
	scemeName = "POTIONFAST";
	wear = WEAR_EFFECT;
	effect = "SPELLFX_ITEMGLIMMER";
	description = name;
	text[3] = "Wirkung unbekannt";
	text[5] = NAME_Value;
	count[5] = value;
};
 
 
func void UseItPo_MegaDrink()
{
	if(self.attribute[ATR_STRENGTH] < self.attribute[ATR_DEXTERITY])
	{
		B_RaiseAttribute(self,ATR_DEXTERITY,STRorDEX_MegaDrink);
	}
	else
	{
		B_RaiseAttribute(self,ATR_STRENGTH,STRorDEX_MegaDrink);
	};
	Npc_ChangeAttribute(self,ATR_MANA,-ATR_MANA);
	Snd_Play("DEM_Warn");
};
 
 
instance ITPO_SOULRIVER(C_Item)
{
	name = "Seelenextrakt";
	mainflag = ITEM_KAT_NONE;
	flags = ITEM_MULTI | ITEM_MISSION;
	value = 5000;
	visual = "ItAt_DragonBlood.3DS";
	material = MAT_GLAS;
	effect = "SPELLFX_HEALTHPOTION";
	description = name;
	text[0] = "Extrakt der Seelen aus Lucians Herz.";
	text[1] = "";
	text[2] = "";
	text[3] = "";
	text[5] = NAME_Value;
	count[5] = value;
};
 
instance ITPO_BLOODFLYPOISON(C_Item)
{
	name = "Flaschen mit Gift";
	mainflag = ITEM_KAT_POTIONS;
	flags = ITEM_MULTI | ITEM_MISSION;
	value = 0;
	visual = "ITFO_POTION_STRENGTH_01.3DS";
	material = MAT_GLAS;
	on_state[0] = usebloodflypoison;
	scemeName = "POTION";
	description = name;
	text[1] = "Dieses Gift wird aus dem Sekret der Blutfliegenstachel hergestellt.";
	text[2] = "Mit AUSSERSTER Vorsicht behandeln!";
	text[5] = "Wirkung: Totet augenblicklich!!!";
};
 
 
func void usebloodflypoison()
{
	Npc_ChangeAttribute(self,ATR_HITPOINTS,-self.attribute[ATR_HITPOINTS_MAX]);
};
 
 
instance ITPO_XMANA2X(C_Item)
{
	name = NAME_Trank;
	mainflag = ITEM_KAT_POTIONS;
	flags = ITEM_MULTI;
	value = 400;
	visual = "ItPo_Mana_03.3ds";
	material = MAT_GLAS;
	on_state[0] = useitpo_mana2x;
	scemeName = "POTIONFAST";
	wear = WEAR_EFFECT;
	effect = "SPELLFX_ITEMGLIMMER";
	description = "Trank des unerschopflichen Mana";
	text[2] = "Verdoppelt den Manavorrat";
	text[5] = NAME_Value;
	count[5] = value;
};
 
 
func void useitpo_mana2x()
{
	self.attribute[ATR_MANA] = self.attribute[ATR_MANA_MAX] * 2;
};
 
 
instance ITPO_ELIGORFIRE(C_Item)
{
	name = "Eligors Flamme";
	mainflag = ITEM_KAT_POTIONS;
	flags = ITEM_MISSION | ITEM_MULTI;
	value = 10000;
	visual = "ITPO_ELIGORFIRES.3ds";
	material = MAT_GLAS;
	on_state[0] = use_itpo_eligorfire;
	scemeName = "POTIONFAST";
	wear = WEAR_EFFECT;
	effect = "SPELLFX_ITEMGLIMMER";
	description = "Eligors Flamme";
	text[2] = NAME_Prot_Fire;
	count[2] = 25;
	text[3] = "Magische Essenz aus den Drusen des roten Drachen...";
	text[5] = NAME_Value;
	count[5] = value;
};
 
 
func void use_itpo_eligorfire()
{
	Wld_PlayEffect("spellFX_LIGHTSTAR_ORANGE",hero,hero,0,0,0,FALSE);
	Wld_PlayEffect("VOB_MAGICBURN",hero,hero,0,0,0,FALSE);
	Snd_Play("DEM_Warn");
	self.protection[PROT_FIRE] += 25;
	PrintScreen(PRINT_LEARNPROTFIRES,-1,-1,FONT_Screen,2);
};
 
 
instance ITPO_MEGAPOTIONSKILL(C_Item)
{
	name = NAME_Trank;
	mainflag = ITEM_KAT_POTIONS;
	flags = ITEM_MULTI;
	value = 5000;
	visual = "ItPo_MegaPotionSkill.3ds";
	material = MAT_GLAS;
	on_state[0] = useitpo_megapotionskill;
	scemeName = "POTIONFAST";
	wear = WEAR_EFFECT;
	effect = "SPELLFX_MANAPOTION";
	description = "Elixier der Macht";
	text[1] = NAME_Bonus_Str;
	count[1] = 3;
	text[2] = NAME_Bonus_Dex;
	count[2] = 3;
	text[3] = NAME_Bonus_ManaMax;
	count[3] = 3;
	text[5] = NAME_Value;
	count[5] = 5000;
};
 
 
func void useitpo_megapotionskill()
{
	var string concatText;
	b_raiseattributemany(self,ATR_MANA_MAX,3);
	b_raiseattributemany(self,ATR_DEXTERITY,3);
	b_raiseattributemany(self,ATR_STRENGTH,3);
	Npc_ChangeAttribute(self,ATR_MANA,ATR_MANA_MAX);
	concatText = "Starke + 3, Geschicklichkeit + 3, Mana + 3";
	PrintScreen(concatText,-1,-1,FONT_Screen,2);
};
 
 
instance ITPO_SAGITTACLAWPOTION(C_Item)
{
	name = "Sagittas Medizin";
	mainflag = ITEM_KAT_POTIONS;
	flags = ITEM_MULTI | ITEM_MISSION;
	value = 350;
	visual = "ItPo_SagittaClawPotion.3ds";
	material = MAT_GLAS;
	on_state[0] = use_itpo_sagittaclawpotion;
	scemeName = "POTIONFAST";
	wear = WEAR_EFFECT;
	effect = "SPELLFX_HEALTHPOTION";
	description = "Sagittas Medizin";
	text[2] = "Diese Medizin hat Sagitta fur Reisszahn zubereitet...";
	text[5] = NAME_Value;
	count[5] = value;
};
 
 
func void use_itpo_sagittaclawpotion()
{
	Npc_ChangeAttribute(self,ATR_HITPOINTS,ATR_HITPOINTS_MAX);
};